<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%-- 设置meta
////////////////////////////////////////////////////////////////////////////////////////////// --%>
<%@ include file="/WEB-INF/template/include/meta.jsp"%>
	<title>三方28数据管理</title>
	
<%-- 导入样式
////////////////////////////////////////////////////////////////////////////////////////////// --%>
<%@ include file="/WEB-INF/template/include/link.jsp"%>
	<link rel="stylesheet" href="${res }/default/css/content.css" /> 
	
<%-- 导入脚本
////////////////////////////////////////////////////////////////////////////////////////////// --%>
<%@ include file="/WEB-INF/template/include/script.jsp"%>
	<script src="${res }/default/js/manage.js"></script>
	<script >
		$.extend(manage,{
			settingNumber:function(){
				var url = "${ctx}/pc/setting/number.json";
				window.app.loading.open();
				new Ajax({
					url:url,
					success:function(response){
						window.app.loading.close();
						if(response.code=="1"){
							window.app.dialog.success(response.msg,function(){
								window.top.$("#J_form").submit();
							});
						}else{
							window.app.dialog.error(response.msg);
						}
					}
				});
			}
		});
	</script>
<%-- 页眉
////////////////////////////////////////////////////////////////////////////////////////////// --%>
<%@ include file="/WEB-INF/template/include/header.jsp"%>
	<div class="xl-content ">
		<div class="xl-content-sidebar pull-left">
			<%@ include file="/WEB-INF/template/include/menu.jsp"%>
		</div>
		
		<div class="xl-content-main">
			<form id="J_form" class="form" action="${ctx }/pc/history/total/manage.html" method="post">
				<div class="well">
					<h2 class="xl-form-title">历史汇总管理</h2>
					<hr />
					<table class="table table-bordered table-striped table-hover">
						<thead>
							<tr>
								<th width="80">序号</th>
								<th width="80">期数</th>
								<th width="100">日期</th>
								<th >号码</th>
								<th >赔率</th>
								<th >单双</th>
								<th >大小</th>
								<th >位置</th>
								<th >尾</th>
								<th >3余</th>
								<th >4余</th>
								<th >5余</th>
								<th width="150">操作</th>
							</tr>
						</thead>
						<tbody>
							<c:forEach items="${pcHistoryTotals }" var="item" varStatus="status">
							<tr>
								<td>${status.index+1 }</td>
								<td>${item.id }</td>
								<td><fmt:formatDate value="${item.date }" pattern="yyyy-MM-dd"/></td>
								<td >${item.number }</td>
								<td>${item.odds }</td>
								<td>${item.parity }</td>
								<td>${item.bigness }</td>
								<td>${item.seat }</td>
								<td>${item.tail }</td>
								<td>${item.r3n }</td>
								<td>${item.r4n }</td>
								<td>${item.r5n }</td>
								<td>
									<a href="javascript:void 0;" class="xl-operation-item fa fa-pencil-square-o" title="修改" onclick="window.app.dialog.iframe({title:'修改',url:'${ctx}/pc/history/total/update.html?id=${item.id}'})"></a>
									<a href="javascript:void 0;" class="xl-operation-item fa fa-list-alt" title="查看" onclick="window.app.dialog.iframe({title:'查看',url:'${ctx}/pc/history/total/detail.html?id=${item.id}'})"></a>
									<a href="javascript:void 0;" class="xl-operation-item fa fa-trash-o" title="删除" onclick="window.app.dialog.confirm('确定删除？',Utils.proxy(window.manage.remove,'${item.id}'))"></a>
									<a href="javascript:void 0;" class="xl-operation-item fa fa-copy" title="复制" onclick="window.app.dialog.confirm('确定复制？',Utils.proxy(window.manage.copy,'${item.id}'))"></a>
								</td>
							</tr>	
							</c:forEach>
						</tbody>
					</table>
					<div>
						<div class="pull-left">
							<button type="button" onclick="window.manage.openSearch()" class="btn btn-sm"><i class=" fa fa-search"></i>筛选</button>
							<button type="button" onclick="window.app.dialog.iframe({title:'新增',url:'${ctx}/pc/history/total/create.html'})" class="btn btn-sm"><i class=" fa fa-plus"></i>新增</button>
							<button type="button" onclick="window.manage.expt()" class="btn btn-sm"><i class=" fa fa-file-excel-o"></i>导出</button>
							<button type="button" onclick="window.app.dialog.iframe({title:'清理',url:'${ctx}/pc/history/total/clean.html'})" class="btn btn-sm"><i class=" fa fa-trash-o"></i>清理</button>
							<button type="button" onclick="window.app.dialog.iframe({title:'清理',url:'${ctx}/pc/history/total/cleans.html'})" class="btn btn-sm"><i class=" fa fa-trash-o"></i>批量</button>
							<button type="button" onclick="window.manage.settingNumber()" class="btn btn-sm"><i class=" fa fa-gear"></i>期号</button>
							<button type="button" onclick="window.app.dialog.iframe({title:'计算',url:'${ctx}/stc/r3n/calculate/total.html'})" class="btn btn-sm"><i class=" fa fa-calculator"></i>3余</button>
							<button type="button" onclick="window.app.dialog.iframe({title:'计算',url:'${ctx}/stc/r4n/calculate/total.html'})" class="btn btn-sm"><i class=" fa fa-calculator "></i>4余</button>
							<button type="button" onclick="window.app.dialog.iframe({title:'计算',url:'${ctx}/stc/r5n/calculate/total.html'})" class="btn btn-sm"><i class=" fa fa-calculator "></i>5余</button>
							<button type="button" onclick="window.app.dialog.iframe({title:'计算',url:'${ctx}/stc/parity/bigness/calculate/total.html'})" class="btn btn-sm"><i class=" fa fa-calculator "></i>单大</button>
							<button type="button" onclick="window.app.dialog.iframe({title:'计算',url:'${ctx}/stc/tail/calculate/total.html'})" class="btn btn-sm"><i class=" fa fa-calculator "></i>尾数</button>
						</div>
						<%@ include file="/WEB-INF/template/include/paging.jsp"%>
						<div class="clear-right"></div>
					</div>
					<div id="J_condition_container">
						<div class="form-horizontal xl-mange-condition" id="J_condition" style="width:500px;display:none;">   
							<div class="well" >
								<h2 class="xl-form-title">筛选条件</h2> 
								<div class="form-group">
									<label class="control-label col-xs-3">日期</label>
									<div class="col-xs-3">
										<select class="form-control" name="dateOp">
											<option value="eq" >等于</option>
										</select>
									</div>
									<div class="col-xs-5">
										<input class="form-control Wdate" type="text" name="date"  onfocus="WdatePicker({readOnly:true,dateFmt:'yyyy-MM-dd'})" readonly="readonly" placeholder="日期" title="日期" value="${date }"/>
									</div>
								</div> 
								<div class="form-group">
									<label class="control-label col-xs-3">日期</label>
									<div class="col-xs-3">
										<select class="form-control" name="dateOp">
											<option value="gt" >从</option>
										</select>
									</div>
									<div class="col-xs-5">
										<input class="form-control Wdate" type="text" name="dateStart"  onfocus="WdatePicker({readOnly:true,dateFmt:'yyyy-MM-dd'})" readonly="readonly" placeholder="日期" title="日期" value="${dateStart }"/>
									</div>
								</div> 
								<div class="form-group">
									<label class="control-label col-xs-3"></label>
									<div class="col-xs-3">
										<select class="form-control" name="dateOp">
											<option value="gt" >到</option>
										</select>
									</div>
									<div class="col-xs-5">
										<input class="form-control Wdate" type="text" name="dateEnd" onfocus="WdatePicker({readOnly:true,dateFmt:'yyyy-MM-dd'})" readonly="readonly" placeholder="日期" title="日期" value="${dateEnd }"/>
									</div>
								</div> 
								<div class="form-group">
									<label class="control-label col-xs-3">号码</label>
									<div class="col-xs-3">
										<select class="form-control" name="numberOp">
											<option value="eq" <c:if test="${numberOp=='eq'}">selected="selected"</c:if>>等于</option>
											<option value="gt" <c:if test="${numberOp=='gt'}">selected="selected"</c:if>>大于</option>
											<option value="lt" <c:if test="${numberOp=='lt'}">selected="selected"</c:if>>小于</option>
											<option value="gte" <c:if test="${numberOp=='gte'}">selected="selected"</c:if>>大于等于</option>
											<option value="lte" <c:if test="${numberOp=='lte'}">selected="selected"</c:if>>小于等于</option>
										</select>
									</div>
									<div class="col-xs-5">
										<input class="form-control" type="text" name="number" placeholder="号码" title="号码" value="${number }"/>
									</div>
								</div> 
								<div class="form-group">
									<label class="control-label col-xs-3">单双</label>
									<div class="col-xs-3">
										<select class="form-control" name="parityOp">
											<option value="eq" <c:if test="${parityOp=='eq'}">selected="selected"</c:if>>等于</option>
											<option value="contains" <c:if test="${parityOp=='contains'}">selected="selected"</c:if>>包含</option>
										</select>
									</div>
									<div class="col-xs-5">
										<input class="form-control" type="text" name="parity" placeholder="单双" title="单双" value="${parity }"/>
									</div>
								</div> 
								<div class="form-group">
									<label class="control-label col-xs-3">大小</label>
									<div class="col-xs-3">
										<select class="form-control" name="bignessOp">
											<option value="eq" <c:if test="${bignessOp=='eq'}">selected="selected"</c:if>>等于</option>
											<option value="contains" <c:if test="${bignessOp=='contains'}">selected="selected"</c:if>>包含</option>
										</select>
									</div>
									<div class="col-xs-5">
										<input class="form-control" type="text" name="bigness" placeholder="大小" title="大小" value="${bigness }"/>
									</div>
								</div> 
								<div class="form-group">
									<label class="control-label col-xs-3">位置</label>
									<div class="col-xs-3">
										<select class="form-control" name="seatOp">
											<option value="eq" <c:if test="${seatOp=='eq'}">selected="selected"</c:if>>等于</option>
											<option value="contains" <c:if test="${seatOp=='contains'}">selected="selected"</c:if>>包含</option>
										</select>
									</div>
									<div class="col-xs-5">
										<input class="form-control" type="text" name="seat" placeholder="位置" title="位置" value="${seat }"/>
									</div>
								</div> 
								<div class="form-group">
									<label class="control-label col-xs-3">尾</label>
									<div class="col-xs-3">
										<select class="form-control" name="tailOp">
											<option value="eq" <c:if test="${tailOp=='eq'}">selected="selected"</c:if>>等于</option>
											<option value="gt" <c:if test="${tailOp=='gt'}">selected="selected"</c:if>>大于</option>
											<option value="lt" <c:if test="${tailOp=='lt'}">selected="selected"</c:if>>小于</option>
											<option value="gte" <c:if test="${tailOp=='gte'}">selected="selected"</c:if>>大于等于</option>
											<option value="lte" <c:if test="${tailOp=='lte'}">selected="selected"</c:if>>小于等于</option>
										</select>
									</div>
									<div class="col-xs-5">
										<input class="form-control" type="text" name="tail" placeholder="尾" title="尾" value="${tail }"/>
									</div>
								</div> 
								<div class="form-group">
									<label class="control-label col-xs-3">3余</label>
									<div class="col-xs-3">
										<select class="form-control" name="r3nOp">
											<option value="eq" <c:if test="${r3nOp=='eq'}">selected="selected"</c:if>>等于</option>
											<option value="gt" <c:if test="${r3nOp=='gt'}">selected="selected"</c:if>>大于</option>
											<option value="lt" <c:if test="${r3nOp=='lt'}">selected="selected"</c:if>>小于</option>
											<option value="gte" <c:if test="${r3nOp=='gte'}">selected="selected"</c:if>>大于等于</option>
											<option value="lte" <c:if test="${r3nOp=='lte'}">selected="selected"</c:if>>小于等于</option>
										</select>
									</div>
									<div class="col-xs-5">
										<input class="form-control" type="text" name="r3n" placeholder="3余" title="3余" value="${r3n }"/>
									</div>
								</div> 
								<div class="form-group">
									<label class="control-label col-xs-3">4余</label>
									<div class="col-xs-3">
										<select class="form-control" name="r4nOp">
											<option value="eq" <c:if test="${r4nOp=='eq'}">selected="selected"</c:if>>等于</option>
											<option value="gt" <c:if test="${r4nOp=='gt'}">selected="selected"</c:if>>大于</option>
											<option value="lt" <c:if test="${r4nOp=='lt'}">selected="selected"</c:if>>小于</option>
											<option value="gte" <c:if test="${r4nOp=='gte'}">selected="selected"</c:if>>大于等于</option>
											<option value="lte" <c:if test="${r4nOp=='lte'}">selected="selected"</c:if>>小于等于</option>
										</select>
									</div>
									<div class="col-xs-5">
										<input class="form-control" type="text" name="r4n" placeholder="4余" title="4余" value="${r4n }"/>
									</div>
								</div> 
								<div class="form-group">
									<label class="control-label col-xs-3">5余</label>
									<div class="col-xs-3">
										<select class="form-control" name="r5nOp">
											<option value="eq" <c:if test="${r5nOp=='eq'}">selected="selected"</c:if>>等于</option>
											<option value="gt" <c:if test="${r5nOp=='gt'}">selected="selected"</c:if>>大于</option>
											<option value="lt" <c:if test="${r5nOp=='lt'}">selected="selected"</c:if>>小于</option>
											<option value="gte" <c:if test="${r5nOp=='gte'}">selected="selected"</c:if>>大于等于</option>
											<option value="lte" <c:if test="${r5nOp=='lte'}">selected="selected"</c:if>>小于等于</option>
										</select>
									</div>
									<div class="col-xs-5">
										<input class="form-control" type="text" name="r5n" placeholder="5余" title="5余" value="${r5n }"/>
									</div>
								</div> 
								<button type="button"  class=" xl-btn-login btn-block "  onclick="window.manage.search()">筛选</button>
							</div>
						</div>
					</div>
				</div>
			</form>
		</div>
		<div class="clearfix"></div>
	</div>
	
<%-- 页脚
////////////////////////////////////////////////////////////////////////////////////////////// --%>
<%@ include file="/WEB-INF/template/include/footer.jsp"%>
